from utils.viewset import CustomModelViewSet
from .models import Role
from .serializers import RoleSerializer


class RoleViewSet(CustomModelViewSet):
    queryset = Role.objects.all()
    serializer_class = RoleSerializer
    search_fields = ('name',)
